<template>
  <div class="video-window">
    <video :src="videoData.videoSrc" class="window-video" controls autoplay></video>
    <svg class="icon icon-guanbi" aria-hidden="true" @click="videoData.videoWinFlag = false">
      <use xlink:href="#icon-guanbi"></use>
    </svg>
  </div>
</template>

<script>
export default {
  name: 'VideoWin',

  props: {
    // 播放视频信息
    videoData: Object
  },

  data() {
    return {
      
    };
  },

  mounted() {
    
  },

  methods: {
    
  },
};
</script>

<style scoped>
.video-window{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, .7);
  z-index: 9999;
  text-align: center;
}
.window-video{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  max-width: 80%;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid #fff;
  box-shadow: 0 0 10px gray;
}
.icon-guanbi{
  position: absolute;
  right: 3%;
  top: 3%;
  font-size: 50px;
}
</style>